package com.uwo.commons.ibatis;

import com.uwo.commons.ibatis.configuration.MybatisConfiguration;
import com.uwo.commons.ibatis.configuration.MybatisProperties;
import com.weimob.commons.datasource.EnableDataSource;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 启动MyBatis
 * @author hao.yan
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
@EnableDataSource
@Import(value = {
    MybatisProperties.class, MybatisConfiguration.class
})
@Configuration
public @interface EnableMybatis {

}
